package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysYongyouCgdd;
import org.apache.ibatis.annotations.Param;

/**
 * 采购订单Mapper接口
 * 
 * @author SYF
 * @date 2025-04-18
 */
public interface SysYongyouCgddMapper 
{
    /**
     * 查询采购订单
     * 
     * @param vouchdate 采购订单主键
     * @return 采购订单
     */
    public SysYongyouCgdd selectSysYongyouCgddByVouchdate(String vouchdate);

    /**
     * 查询采购订单列表
     * 
     * @param sysYongyouCgdd 采购订单
     * @return 采购订单集合
     */
    public List<SysYongyouCgdd> selectSysYongyouCgddList(SysYongyouCgdd sysYongyouCgdd);

    /**
     * 新增采购订单
     * 
     * @param sysYongyouCgdd 采购订单
     * @return 结果
     */
    public int insertSysYongyouCgdd(SysYongyouCgdd sysYongyouCgdd);

    /**
     * 修改采购订单
     * 
     * @param sysYongyouCgdd 采购订单
     * @return 结果
     */
    public int updateSysYongyouCgdd(SysYongyouCgdd sysYongyouCgdd);

    /**
     * 删除采购订单
     * 
     * @param vouchdate 采购订单主键
     * @return 结果
     */
    public int deleteSysYongyouCgddByVouchdate(String vouchdate);

    public int deleteYongyouCgddByDate(@Param("vouchdate") String vouchdate);

    public int deleteYongyouCgddByCode(@Param("code") String code);

    /**
     * 批量删除采购订单
     * 
     * @param vouchdates 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysYongyouCgddByVouchdates(String[] vouchdates);
}
